﻿using System;

namespace Mbs
{
    public static class ExceptionService
    {
        public static Action<Exception> ExceptionFired { get; set; }

        public static void RaiseException(this Exception ex)
        {
            if (ExceptionFired != null && ex != null)
                ExceptionFired.Send(ex);
        }
    }
}